package com.onesports.intelligent.k12.polarlight.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author Wu
 */

public enum PayTypeEnum implements IEnum<String> {
    WX("1","微信支付"),CASH("2","现金支付"),SURPLUS("3","余额");

    private String code;
    private String text;

    PayTypeEnum(String code, String text){
        this.code = code;
        this.text = text;
    }

    @Override
    public String getValue() {
        return this.code;
    }

    @JsonValue
    public String getText() {
        return this.text;
    }
}
